<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./css/login.css">
    <!-- <link rel="stylesheet" href="./css/flex.css"> -->
</head>

<body>
    <div class="main">
        <div class="container login" v-bind:class="{activity:isActivity }" id="login">
            <form class="form" method="post" autocomplete="off" @submit.prevent="onSubmit_login">
                <h3>作业提交与批改系统</h3>
                <p>———刘易鑫</p>
                <input type="text" autofocus="autofocus" name="username" value placeholder="用户名" required="required"
                    v-model="uname">
                <input type="password" name="password" value placeholder="密码" required="required" v-model="upas">
                <div class="status">
                    <div><input type="radio" name="select" value="student" v-model="status"><span>学生</span></div>
                    <div><input type="radio" name="select" value="teacher" v-model="status"><span>老师</span></div>
                </div>
                <input id="submit" type="submit" name="submit" value="登录">
                <button class="fr" v-on:click="goLogin">去注册</button>
            </form>
        </div>
        <div class="container register" v-bind:class="{activity:isActivity_s}" id="register">
            <form class="form" method="post" autocomplete="off" @submit.prevent="onSubmit_reg">
                <h3>作业提交与批改系统</h3>
                <p>———刘易鑫</p>
                <input type="text" autofocus="autofocus" name="username" value placeholder="用户名" required="required"
                    v-model="uname">
                <input type="password" name="password" value placeholder="密码" required="required" v-model="upas">
                <input type="password" name="password" value placeholder="密码" required="required" v-model="reupas">
                <input id="submit" type="submit" name="submit" value="注册">
                <button class="fr" v-on:click="goLogin">去登录</button>
            </form>
        </div>
    </div>
</body>
<script src="./js/vue.js"></script>
<script src="./js/axios.js"></script>
<script src="./js/login.js"></script>

</html>